Global Index
HTML5 JS API Index
>
DOM
Tutorials & Specs
MutationObserver
A MutationObserver object can be used to observe mutations to the tree of nodes.
Constructor
MutationObserver(MutationCallback callback)
Operations
void
disconnect
()
The disconnect() method must, for each node node in the context object's list of nodes, remove any registered observer on node for which the context object is the observer, and also empty context object's record queue.
void
observe
(
Node
target,
MutationObserverInit
options)
sequence<
MutationRecord
>
takeRecords
()
The takeRecords() method must return a copy of the record queue and then empty the record queue.